package com.rem.mapper;

import com.rem.domain.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {

    public List<User> queryUserList();

    @Insert("insert into user " +
            "(id,name,username,password) " +
            "values (#{id} ,#{name} ,#{username} ,#{password} )")
    int insertInto(User user);
}
